8 const int MAXN
= 10000, MAXK
= 100;
19 if ( (0 <= n
&& n
<= MAXN
&& 0 <= k
&& k
<= MAXK
) == false ) while (1);
20 for (int i
=0; i
<n
; ++i
){
24 for (int j
=0; j
<k
; ++j
){
31 for (int i
=1; i
<n
; ++i
){
32 for (int j
=0; j
<k
; ++j
){
36 dp
[i
][j
] |= dp
[i
-1][t
%k
];
40 dp
[i
][j
] |= dp
[i
-1][t
%k
];
44 cout
<< (dp
[n
-1][0]?"D":"Not d") << "ivisible" << endl
;